<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">服务协议:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="service_agreement" type="text" value="{$service_agreement}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button"
                                data-url="upload_file/uploadOBS"
                                id="faupload-avatar"
                                class="btn btn-danger faupload"
                                data-input-id="c-avatar"
                                data-mimetype="application/pdf"
                                data-multiple="false"
                                data-preview-id="p-avatar">
                            <i class="fa fa-upload"></i>
                            上传
                        </button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">服务协议:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <textarea id="service_agreement_text" class="form-control editor" rows="5" name="service_agreement_text" cols="50" data-tip=''>{$service_agreement_text|htmlentities}</textarea>
            </div>
        </div>
    </div>

</form>